﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTO;
using System.Data.SqlClient;
using System.Data;
namespace DAO
{
    public class LUUTRUBIENDAO
    {
        public int soluongnhanvien()
        {
            SqlConnection conn = DATAPROVIDER.ConnectSQL();
            string sql = "SELECT GiaTri FROM LUU_TRU_BIEN WHERE TenBien= N'SỐ LƯỢNG NHÂN VIÊN' ";
            SqlCommand cmd = new SqlCommand(sql, conn);
            object kq2 = cmd.ExecuteScalar();
            int kq = Convert.ToInt32(kq2);
            conn.Close();
            conn.Dispose();
            return kq;
        }
    }
}
